package com.ninesevenseven;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        int[] nums1 = new int[]{-4, -1, 0, 3, 10};
        int[] nums2 = new int[]{-7, -3, 2, 3, 11};

        int[] ints1 = new NineSevenSeven().sortedSquares(nums1);
        int[] ints2 = new NineSevenSeven().sortedSquares(nums2);

        ArrayList<Integer> list1 = new ArrayList<>();
        ArrayList<Integer> list2 = new ArrayList<>();

        for (int a : ints1) {
            list1.add(a);
        }

        for (int a : ints2) {
            list2.add(a);
        }

        System.out.println(list1);
        System.out.println(list2);
    }
}
